from setuptools import setup, find_packages

# get version from __version__ variable in eam/__init__.py
import os
import sys

sys.path.insert(0, os.path.abspath('.'))

from eam import __version__ as version

try:
    with open("requirements.txt") as f:
        install_requires = f.read().strip().split("\n")
except FileNotFoundError:
    install_requires = []

setup(
    name="eam",
    version=version,
    description="EAM - Enterprise Asset Management",
    author="zhn",
    author_email="zhanging4615@163.com",
    packages=find_packages(),
    zip_safe=False,
    include_package_data=True,
    install_requires=install_requires
)